var quitApplication = function () {
	if ( Ext.isAir )
	{
		airApplicationExit();
	}
};

var airApplicationExit = function () {
	var exitingEvent = new air.Event(air.Event.EXITING, false, true);
	air.NativeApplication.nativeApplication.dispatchEvent(exitingEvent);
	if (!exitingEvent.isDefaultPrevented()) {
		air.NativeApplication.nativeApplication.exit();
	}
};